<?php
/** * Analytics Class * 
 * @package TIAP 
 * @subpackage Controller 
 * @category Crime Report 
 * @author Harits H Balfas 
 * @description Handling analytics function for crime report
 * @link http://twitter.com/jeblagsancang 
 */
class Ccbill extends Controller {
    function Ccbill(){
        parent::Controller();        
        //$this->load->plugin('graph');
        $this->load->library('session');
        //$this->load->helper(array('form','tiap_helper','html'));        
        //$this->load->model(array('Crime_report_model'));
    }
    function index(){ //echo 'test';exit;
     
    }
    function payment(){
        $payment_url = $this->input->post('payment_url');
        $this->session->set_userdata('payment_url',$payment_url);
        $this->session->set_userdata('payment_ses',random_string());
         $this->load->view(TEMPLATE_NAME.'/front/make_a_payment_view', $data);
    }
    
    function notify(){  
       $payment_url = $this->session->userdata('payment_url');
        redirect($payment_url);
    }
    
}
?>
